#ifndef __Math__SplashManager__
#define __Math__SplashManager__

#include "cocos2d.h"

USING_NS_CC;

class SplashManager : public Layer
{
private:
	Size m_screenSize;
	Node* layerCaution;
	Node* layerDesigner;
	Node* layerLoading;
	Node* loadingBar;

	void runLayerDesign();
	void runLayerCaution();

	void initBackground();
	void initLayer();
	void initComponent();

	void update(float dt);
	void tapOK(Ref* pSender);
public:
	void initalize();

	static Scene* createScene();
	virtual bool init();
	CREATE_FUNC(SplashManager);
};

#endif /* defined(__Math__SplashManager__) */